home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" indent="no"/>
- <xsl:template match="/ArrayOfCLogRecord">
- <html>
- <head>
- <title>Logs</title>
- </head>
- <body>
- <table>
- <tr style="background-color: #999999; font-weight: bold;">
- <td>Info</td>
- <td>Description</td>
- </tr>
- <xsl:apply-templates/>
- </table>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="CLogRecord[position() mod 2 = 1]">
- <tr style="background-color: normal;">
- <td><xsl:value-of select="@Type"/></td>
- <td><xsl:value-of select="@Text"/></td>
- </tr>
- </xsl:template>
- <xsl:template match="CLogRecord">
- <tr style="background-color: #dfdfdf;">
- <td><xsl:value-of select="@Type"/></td>
- <td><xsl:value-of select="@Text"/></td>
- </tr>
- </xsl:template>
- <xsl:template match="CLogRecord[@Type = 'Warning']">
- <tr style="background-color: #dfdfdf;">
- <td bgcolor="yellow"><xsl:value-of select="@Type"/></td>
- <td bgcolor="yellow"><xsl:value-of select="@Text"/></td>
- </tr>
- </xsl:template>
- <xsl:template match="CLogRecord[@Type = 'Error']">
- <tr style="background-color: #dfdfdf;">
- <td bgcolor="red"><xsl:value-of select="@Type"/></td>
- <td bgcolor="red"><xsl:value-of select="@Text"/></td>
- </tr>
- </xsl:template>
-
- </xsl:stylesheet>
-